# -*- coding: utf-8 -*-

import time

data = []
n = 10000
start = time.time()
for x in range(n):
    data.insert(0, x)  # 把新数据加在表的最前面
end = time.time()
print("Consume time = " + str(end - start) + "Second")

data = []
start = time.time()
for x in range(n):
    data.insert(len(data), x)  # 把新数据加在表的最后面
end = time.time()
print("Consume time = " + str(end - start) + "Second")
